package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.ListBean;
import com.cskaoyan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/user")
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("list")
    public BaseRespVo list(String username, String mobile, Integer page, Integer limit, String sort, String order){
        ListBean listBean = userService.queryUserListBean(username,mobile,page,limit,sort,order);
        return BaseRespVo.ok(listBean);
    }

    @RequestMapping("test")
    public BaseRespVo test(){
        return null;
    }

}
